import os

from langchain_community.chat_models import ChatTongyi


os.environ["DASHSCOPE_API_KEY"] = "sk-9d8f1914800e497f8717144e860f99bc"
chat_model = ChatTongyi()
result = chat_model.invoke("你是谁")
print(result)